<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			.btn{
           	width: 90px;
           	height: 30px;
           	border: none;
           	outline: none;
           }
           .btn:active{
           	cursor: pointer;
           	transform: translateY(2px);
           }
		</style>
	</head>
	<body>
		<button class="btn" onclick="handle(event)">点击触发e</button>
		<button class="btn" onclick="handle2(this)">点击触发this</button>
		
		<script language="JavaScript" type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript">
		
			//显示event
			function handle(a){
				e = e || event;
				if(e.type=='click'){
					alert("触发的是click");
					console.log(e);
				}
				else{
					alert("触发失败.");
				}
			}
			
			//显示this
			function handle2(sender){
				console.log(sender);
			}
		</script>
	</body>
</html>
